var __data = {
    //账户管理数据
    "moneyaccount.entity": [{
        "FDESC": "现金",
        "FBANKDESC": "中国银行",
        "FBANKID": null
    }, {
        "FDESC": "总部",
        "FBANKDESC": "建设银行",
        "FBANKID": null
    }, {
        "FDESC": "分公司",
        "FBANKDESC": "工商银行",
        "FBANKID": null
    }],
    "brand.entity": [{
        "FDESC": "恒瑞医药1",
        "FNODE": "江苏恒瑞医药股份有限公司"
    }, {
        "FDESC": "云南白药",
        "FNODE": " 云南白药集团股份有限公司"
    }, {
        "FDESC": "同仁堂",
        "FNODE": "中国北京同仁堂(集团)有限责任公司"
    }, {
        "FDESC": "三九999",
        "FNODE": "华润医药控股有限公司"
    }, {
        "FDESC": "修正",
        "FNODE": "修正药业集团股份有限公司"
    }, {
        "FDESC": "哈药",
        "FNODE": "哈药集团有限公司"
    }],
    "supplier.entity": [{
        "FID":"001",
        "FDESC":"供应商名称",
        "FPINYIN":"拼音",
        "FENTERPRISEPERSON":"企业法人",
        "FENTERPRISESUPERVISOR":"企业负责人",
        "FQUALITYSUPERVISOR":"质量负责人",
        "FTAXNUM":"纳税号",
        "FCONTACTMAN":"联系人",
        "FCONTACTTEL":"联系电话",
        "FFAX":"传真",
        "FADDRESS":"地址",
        "FZIPCODE":"邮编",
        "FEMAIL":"email",
        "FBUSINESSTYPE":"经营类型",
        "FCERTIFICATION":"认证类别",
        "FCUSTOMERCATEGORY":"客户类别",
        "FSALESMAN":"业务员",
        "FSALESMANIDCARD":"业务员身份证",
        "FTAXID":"税务登记号",
        "FAREA":"所在地区",
        "FBANK":"开户行",
        "FBANKACCOUNT":"银行帐户"
    }]
}

export default [{
    url: '/data/query/*',
    type: 'post',
    response: config => {
        let path = config.path;
        let pathSplit = path.split("/");
        let entity = pathSplit[pathSplit.length - 1];
        for (let i = 0; i < 999999999; i++) {

        }
        return {
            status: 200,
            entity,
            data: {
                rows: __data[entity] || []
            }
        }
    }
}, {
    url: '/data/save',
    type: 'post',
    response: config => {
        let path = config.path;
        let pathSplit = path.split("/");
        //let entity = pathSplit[pathSplit.length - 1];
        return {
            status: 200,
            msg: "ok"
        }
    }
}]





